package org.example.curriculum_design_6_16.common.auth;


/**
 * 访问拒绝异常（403）
 */
public class AccessDeniedException extends AuthException {
    public AccessDeniedException() {
        super(403, "AUTH_003", "无权访问该资源");
    }

    public static AccessDeniedException of(String resource) {
        AccessDeniedException exception = new AccessDeniedException();
        exception.withDetail("资源: " + resource);
        return exception;
    }
}